package com.inibb.app.po.admin;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;

import com.inibb.app.po.POConstants;

@Entity
@Table(name = "GENERIC_CODE")
public class GenericCode implements Serializable {

	private static final long serialVersionUID = 1L;
	private Integer codeId;
	private String code;
	private String codeType;
	private String name;//cn
	private String desp;
	private Integer parentId;
	private Integer orgId;
	private String editable;
	private String status;
	private Integer version;
	private String name2;//en
	private String name3;//hk
	private String name4;
	private String name5;
	private String name6;

	@Id
	@Column(name = "CODE_ID", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@OrderBy("ASC")
	public Integer getCodeId() {
		return codeId;
	}

	public void setCodeId(Integer id) {
		this.codeId = id;
	}
	
	@Column(name = "CODE", length = POConstants.NAME_FIELD_LENGTH)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "CODE_TYPE", length = POConstants.NAME_FIELD_LENGTH)
	public String getCodeType() {
		return codeType;
	}

	public void setCodeType(String codeType) {
		this.codeType = codeType;
	}

	@Column(name = "NAME", length = POConstants.NAME_FIELD_LENGTH)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name = "NAME2", length = POConstants.NAME_FIELD_LENGTH)
	public String getName2() {
		return name2;
	}

	public void setName2(String name2) {
		this.name2 = name2;
	}
	@Column(name = "NAME3", length = POConstants.NAME_FIELD_LENGTH)
	public String getName3() {
		return name3;
	}

	public void setName3(String name3) {
		this.name3 = name3;
	}
	@Column(name = "NAME4", length = POConstants.NAME_FIELD_LENGTH)
	public String getName4() {
		return name4;
	}

	public void setName4(String name4) {
		this.name4 = name4;
	}
	@Column(name = "NAME5", length = POConstants.NAME_FIELD_LENGTH)
	public String getName5() {
		return name5;
	}

	public void setName5(String name5) {
		this.name5 = name5;
	}
	@Column(name = "NAME6", length = POConstants.NAME_FIELD_LENGTH)
	public String getName6() {
		return name6;
	}

	public void setName6(String name6) {
		this.name6 = name6;
	}

	@Column(name = "DESP", length = POConstants.LONG_TEXT_FIELD_LENGTH)
	public String getDesp() {
		return desp;
	}

	public void setDesp(String desp) {
		this.desp = desp;
	}

	@Column(name = "PARENT_ID")
	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	@Column(name = "ORG_ID")
	public Integer getOrgId() {
		return orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	@Column(name = "EDITABLE", length = POConstants.IND_LENGTH)
	public String getEditable() {
		return editable;
	}

	public void setEditable(String editable) {
		this.editable = editable;
	}

	@Column(name = "STATUS")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "VERSION")
	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

}
